package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author gmx
 * @since 2023-06-13
 */
@Data
@TableName("h2_shop_goods_sku_stocks")
@Schema(name = "ShopGoodsSkuStocks", description = "")
public class ShopGoodsSkuStocks implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "商铺sku")
    private Long skuId;

    @Schema(description = "skuName")
    private String skuName;
    @Schema(description = "skuAttr")
    private String skuAttr;

    @Schema(description = "库存")
    private Integer num;

    @Schema(description = "价格")
    private BigDecimal price;
    @Schema(description = "成本单价")
    private BigDecimal costPrice;

    @Schema(description = "0正常1冻结")
    private Boolean state;
    @Schema(description = "支付类型，1、在线支付、0 货到付款")
    private String payType;
    @Schema(description = "进货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @Schema(description = "采购单号")
    private String businessNo;

    private Long shopId;
    /**
     * 采购单Id
     */
    private Long purchaseId;

    private Integer returnStatus;
}
